Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented May 12, 2025


PR-Codex overview

This PR focuses on enhancing error handling in the chat application by introducing a new error event type and updating the state management to display error messages.

Detailed summary

  • Added a new case for handling "error" in ChatPageContent.tsx, which updates the messages state with an error message.
  • Introduced a new error event structure in chat.ts for handling streamed error responses.
  • Updated ChatStreamedResponse and ChatStreamedEvent types to include the new error event format.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@linear
Copy link

linear bot commented May 12, 2025

@vercel
Copy link

vercel bot commented May 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 12, 2025 8:53pm
login ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 12, 2025 8:53pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 12, 2025 8:53pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 12, 2025 8:53pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 12, 2025 8:53pm

@vercel vercel bot temporarily deployed to Preview – thirdweb_playground May 12, 2025 19:31 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 May 12, 2025 19:31 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui May 12, 2025 19:31 Inactive
@vercel vercel bot temporarily deployed to Preview – login May 12, 2025 19:31 Inactive
@changeset-bot
Copy link

changeset-bot bot commented May 12, 2025

⚠️ No Changeset found

Latest commit: 98d05d6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label May 12, 2025
@MananTank MananTank marked this pull request as ready for review May 12, 2025 19:31
@MananTank MananTank requested review from a team as code owners May 12, 2025 19:31
Copy link
Member Author

MananTank commented May 12, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@codecov
Copy link

codecov bot commented May 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.71%. Comparing base (f4ac3c2) to head (98d05d6).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7022   +/-   ##
=======================================
  Coverage   54.71%   54.71%           
=======================================
  Files         904      904           
  Lines       57991    57991           
  Branches     4004     4004           
=======================================
  Hits        31731    31731           
  Misses      26155    26155           
  Partials      105      105           
Flag Coverage Δ
packages 54.71% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Contributor

github-actions bot commented May 12, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 54.21 KB (0%) 1.1 s (0%) 172 ms (+126.19% 🔺) 1.3 s
thirdweb (cjs) 193.92 KB (0%) 3.9 s (0%) 363 ms (+31.74% 🔺) 4.3 s
thirdweb (minimal + tree-shaking) 5.68 KB (0%) 114 ms (0%) 76 ms (+1156.31% 🔺) 190 ms
thirdweb/chains (tree-shaking) 524 B (0%) 11 ms (0%) 34 ms (+1609.1% 🔺) 45 ms
thirdweb/react (minimal + tree-shaking) 19.53 KB (0%) 391 ms (0%) 68 ms (+376.13% 🔺) 458 ms

@graphite-app
Copy link
Contributor

graphite-app bot commented May 12, 2025

Merge activity

graphite-app bot pushed a commit that referenced this pull request May 12, 2025
<!--

## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"

If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):

## Notes for the reviewer

Anything important to call out? Be sure to also clarify these in your comments.

## How to test

Unit tests, playground, etc.

-->

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces error handling for chat responses in the `ChatPageContent` and `chat.ts` files. It adds functionality to display error messages when an error event is received.

### Detailed summary
- Added handling for `"error"` case in `ChatPageContent.tsx` to update messages with error details.
- Implemented parsing of error data in `chat.ts` to extract error code and message.
- Updated `ChatStreamedEvent` type to include an `"error"` event with relevant data structure.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
@vercel vercel bot temporarily deployed to Preview – docs-v2 May 12, 2025 20:27 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui May 12, 2025 20:27 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground May 12, 2025 20:27 Inactive
@vercel vercel bot temporarily deployed to Preview – login May 12, 2025 20:27 Inactive
Base automatically changed from neb-245 to main May 12, 2025 20:34
<!--

## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"

If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):

## Notes for the reviewer

Anything important to call out? Be sure to also clarify these in your comments.

## How to test

Unit tests, playground, etc.

-->

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces error handling for chat responses in the `ChatPageContent` and `chat.ts` files. It adds functionality to display error messages when an error event is received.

### Detailed summary
- Added handling for `"error"` case in `ChatPageContent.tsx` to update messages with error details.
- Implemented parsing of error data in `chat.ts` to extract error code and message.
- Updated `ChatStreamedEvent` type to include an `"error"` event with relevant data structure.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dashboard Involves changes to the Dashboard.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants